package com.hjq.common.exception;

/**
 * @auther HJQ
 */
public enum ExceptionEnum {
    VALLID_EXCEPTION(101,"数据传输异常"),
    UNKNOWN_EXCEPTION(100,"未知异常"),
    UPDPRODUCT_EXCEPTION(102,"上架商品错误"),
    USERNAME_EXIST_EXCEPTION(103,"用户名已存在"),
    PHONE_EXIST_EXCEPTION(104,"电话号码已存在"),
    LOGIN_EXIST_EXCEPTION(105,"账号或密码错误");
    private  int number;
    private  String msg;
    ExceptionEnum(int number,String msg){
        this.number=number;
        this.msg=msg;
    }

    public int getNumber() {
        return number;
    }

    public String getMsg() {
        return msg;
    }
}
